//package com.nf.health.app.inquiry.impl.viewholder;
//
//import android.app.Activity;
//import android.content.Context;
//import android.support.v7.widget.RecyclerView;
//import android.text.Html;
//import android.text.TextUtils;
//import android.view.View;
//import android.widget.ImageView;
//import android.widget.LinearLayout;
//import android.widget.TextView;
//
//import com.bumptech.glide.Glide;
//import com.nf.health.app.R;
//import com.nf.health.app.customview.CircleImageView;
//import com.nf.health.app.inquiry.adapter.DocDetailRecycleAdapter;
//import com.nf.health.app.models.DoctorHome;
//import com.nf.health.app.utils.GetToast;
//import com.nf.health.app.utils.ImageUtils;
//import com.nf.health.app.utils.ViewUtil;
//
//import butterknife.Bind;
//import butterknife.ButterKnife;
//
///**
// *  用户的问诊医生
// * @author yyh
// */
//public class DoctorIngerRogationViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
//    //下午的星星
//    @Bind(R.id.iv_mor_star01)
//    public ImageView iv_mor_star01;
//    @Bind(R.id.iv_mor_star02)
//    public ImageView iv_mor_star02;
//    @Bind(R.id.iv_mor_star03)
//    public ImageView iv_mor_star03;
//    @Bind(R.id.iv_mor_star04)
//    public ImageView iv_mor_star04;
//    @Bind(R.id.iv_mor_star05)
//    public ImageView iv_mor_star05;
//    @Bind(R.id.iv_mor_star06)
//    public ImageView iv_mor_star06;
//    @Bind(R.id.iv_mor_star07)
//    public ImageView iv_mor_star07;
//
//    //下午的星星
//    @Bind(R.id.iv_afn_star01)
//    public ImageView iv_afn_star01;
//    @Bind(R.id.iv_afn_star02)
//    public ImageView iv_afn_star02;
//    @Bind(R.id.iv_afn_star03)
//    public ImageView iv_afn_star03;
//    @Bind(R.id.iv_afn_star04)
//    public ImageView iv_afn_star04;
//    @Bind(R.id.iv_afn_star05)
//    public ImageView iv_afn_star05;
//    @Bind(R.id.iv_afn_star06)
//    public ImageView iv_afn_star06;
//    @Bind(R.id.iv_afn_star07)
//    public ImageView iv_afn_star07;
//
//
//    @Bind(R.id.ll_shoutip)//图片和布局的ll
//    public LinearLayout ll_shoutip;
//    @Bind(R.id.doctor_hospital_doc)//医院的名称
//    public TextView doctor_hospital_doc;
//    @Bind(R.id.tv_way_dcotail_interrogat)//出诊
//    public TextView tv_way_dcotail_interrogat;
//    @Bind(R.id.iv_star_dcotail_small)//展示title的小心星星
//    public ImageView iv_star_dcotail_small;
//    @Bind(R.id.iv_up_to_down)//展示想上或者是向下的箭头
//    public ImageView iv_up_to_down;
//    @Bind(R.id.ll_iv_up_to_down)//展示想上或者是向下的箭头
//    public LinearLayout ll_iv_up_to_down;
//    @Bind(R.id.ll_show_star)//展示上下的小星星
//    public LinearLayout ll_show_star;
//
//
//
//    private Context cnt;
//    public DoctorIngerRogationViewHolder(View itemView, Context cnt) {
//        super(itemView);
//        ButterKnife.bind(this, itemView);
//        iv_up_to_down.setOnClickListener(this);
//        ll_shoutip.setOnClickListener(this);
//        this.cnt = cnt;
//
//    }
//    public void onClick(View v) {
//        switch (v.getId()){
//            case  R.id.iv_up_to_down:
//            case  R.id.ll_shoutip:
//                Integer tag = (Integer) iv_up_to_down.getTag();
//                if(tag == null){
//                    ImageUtils.setImageViewBg(iv_up_to_down, cnt, R.drawable.home_docinfo_more_up);
//                    if(ll_shoutip.getVisibility() == View.VISIBLE){
//                        iv_up_to_down.setTag(R.drawable.home_docinfo_more_up);
//                    }else{
//                        iv_up_to_down.setTag(R.drawable.home_docinfo_more_down);
//                    }
//                    tag = (Integer) iv_up_to_down.getTag();
//                }
//                if(tag == R.drawable.home_docinfo_more_down){
//                    ImageUtils.setImageViewBg(iv_up_to_down, cnt, R.drawable.home_docinfo_more_up);
//                    ll_shoutip.setVisibility(View.VISIBLE);
//                    ll_show_star.setVisibility(View.VISIBLE);
//                    iv_up_to_down.setTag(R.drawable.home_docinfo_more_up);
//                }else if(tag == R.drawable.home_docinfo_more_up){
//                    ImageUtils.setImageViewBg(iv_up_to_down, cnt, R.drawable.home_docinfo_more_down);
//                    ll_shoutip.setVisibility(View.GONE);
//                    ll_show_star.setVisibility(View.GONE);
//                    iv_up_to_down.setTag(R.drawable.home_docinfo_more_down);
//                }
//                break;
//        }
//    }
//
//    public void loadData(){
////        Glide.with(cnt)
////                .load(doctorDetail.getDoctorData().getHimg())
////                .placeholder(R.drawable.default_head)
////                .into(iv_head_icon_doc);
////        doctor_name_doc.setText(TextUtils.isEmpty(doctorDetail.getDoctorData().getNick()) ? "未知" : doctorDetail.getDoctorData().getNick());
////        doctor_data_doc.setText(TextUtils.isEmpty(doctorDetail.getDoctorData().getHospitalname()) ? "未知" : doctorDetail.getDoctorData().getHospitalname());
////        doctor_job_doc.setText(TextUtils.isEmpty(doctorDetail.getDoctorData().getDepartment()) ? "未知" : doctorDetail.getDoctorData().getDepartment());//专业
////        doctor_hospital_doc.setText(TextUtils.isEmpty(doctorDetail.getDoctorData().getHospital()) ? "未知" : doctorDetail.getDoctorData().getHospital());//医院地址
////        btn_foucus_doc.setText(TextUtils.isEmpty(doctorDetail.getDoctorData().getHospital()) ? "未知" : doctorDetail.getDoctorData().getHospital());//是否被关注
////        tv_evaluation_rate.setText(TextUtils.isEmpty(doctorDetail.getOkay()) ? Html.fromHtml("<font color='#f0792d'>" + "0%"+ "</font>") :
////                Html.fromHtml("<font color='#f0792d'>" + doctorDetail.getOkay()+"%" + "</font>"));//好评率
////        tv_sign_contract.setText(TextUtils.isEmpty(doctorDetail.getFans()) ? Html.fromHtml("<font color='#f0792d'>" + 0 + "户" + "</font>") :
////                Html.fromHtml("<font color='#f0792d'>" + doctorDetail.getFans() + "户" + "</font>"));//签约家庭用户
////        tv_healthy_manager.setText(TextUtils.isEmpty(doctorDetail.getIsprivate()) ? Html.fromHtml("<font color='#f0792d'>" + 0 +"人"+ "</font>") :
////                Html.fromHtml("<font color='#f0792d'>" + doctorDetail.getIsprivate() +"人" + "</font>"));//健康管理
////        tv_doctor_goodness_doc.setText(TextUtils.isEmpty(doctorDetail.getDoctorData().getDepartment()) ? "未知" : doctorDetail.getDoctorData().getDepartment());//擅长
////        tv_doctor_introduction_doc.setText(TextUtils.isEmpty(doctorDetail.getDoctorData().getGoodremedy()) ? "未知" : doctorDetail.getDoctorData().getGoodremedy());//简介
////        tv_query_doc_detail.setText("查看详情");//查看详情
//        Integer tag = (Integer) iv_up_to_down.getTag();
//        if(tag == null){
//            ImageUtils.setImageViewBg(iv_up_to_down, cnt, R.drawable.home_docinfo_more_up);
//            ll_shoutip.setVisibility(View.VISIBLE);
//            iv_up_to_down.setTag(R.drawable.home_docinfo_more_up);
//        }else if(tag == R.drawable.home_docinfo_more_down){
//            ImageUtils.setImageViewBg(iv_up_to_down, cnt, R.drawable.home_docinfo_more_up);
//            ll_shoutip.setVisibility(View.VISIBLE);
//            iv_up_to_down.setTag(R.drawable.home_docinfo_more_up);
//        }else if(tag == R.drawable.home_docinfo_more_up){
//            ImageUtils.setImageViewBg(iv_up_to_down, cnt, R.drawable.home_docinfo_more_down);
//            ll_shoutip.setVisibility(View.GONE);
//            iv_up_to_down.setTag(R.drawable.home_docinfo_more_down);
//        }
//    }
//}
